Skip to content

Convert BDS 71 (parental birth country) from integer to string#9

Merged
stefvanbuuren merged 2 commits intomasterfrom
bds71
Mar 21, 2024
Merged

Convert BDS 71 (parental birth country) from integer to string#9
stefvanbuuren merged 2 commits intomasterfrom
bds71

Conversation

@stefvanbuuren
Copy link
Member

The definition of the BDS field 71 is "alphanumeric". In bdsreader this definition was interpreted that the data specification should be integer (pre-24.0) or numeric (24.0). Neither is correct. The usual interpretation is that BDS 71 is a string with four digits. For example, "0123" should be read into R as character, and not be converted to integer or number.

This PR corrects this error. Changes made:

  • schemas/bds_v3.0.json definition change (we don't care about pre v3.0 schemas)
  • alterations in the reading routines
  • alterations in the example data

As a result definition and blbf and blbm fields are now read as character.

@stefvanbuuren stefvanbuuren merged commit 1773455 into master Mar 21, 2024
@stefvanbuuren stefvanbuuren deleted the bds71 branch March 21, 2024 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant